Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Fluid Cells having hard coded(and wrong) fluid properties #2927

Open
wants to merge 3 commits into
base: 1.20.1
Choose a base branch
from

Conversation

YoungOnionMC
Copy link
Member

What

Fix the various large fluid cells having hard coded values for the fluid properties, as some were wrong

Implementation Details

use the fluid pipe property instead for the ThermalFluidStats

Outcome

you can use stainless as an acid holder again :)

@YoungOnionMC YoungOnionMC requested a review from a team as a code owner March 3, 2025 06:17
Copy link
Member

@Ghostipedia Ghostipedia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better than it being hardcoded

@Ghostipedia Ghostipedia added the type: refactor Suggestion to refactor a section of code label Mar 3, 2025
var prop = mat.getProperty(PropertyKey.FLUID_PIPE);
if (prop == null) prop = GTMaterials.Wood.getProperty(PropertyKey.FLUID_PIPE);
return REGISTRATE
.item("%s_fluid_cell".formatted(mat.getName()), ComponentItem::create)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please ensure that this doesn't result in missing IDs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: refactor Suggestion to refactor a section of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants